/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.openbookformat.page;

/**
 *
 * @author matamh0a
 */
public class Bookmark {

    int offset;
    int length;
    boolean selected;

    public Bookmark(int offset, int length) {
        this.offset = offset;
        this.length = length;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public int getOffset() {
        return offset;
    }

    public void setOffset(int offset) {
        this.offset = offset;
    }

    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }

    @Override
    public String toString() {
        return "Bookmark{" + "offset=" + offset + ", length=" + length + ", selected=" + selected + '}';
    }
}